#include "lvgl/lvgl.h"
#include "include/common.h"
#include "config/CustomConfig.h"

//------------------------------------
// 自定义窗口创建函数
//------------------------------------

/**
 * 设置显示对象lv_display_t的lv_sdl_window_t窗口的标题
 * @param disp 显示对象lv_display_t
 * @param title 标题
 * @return
 */
void set_window_title(lv_display_t * disp, const char *title)
{
    lv_sdl_window_t * dsc = (lv_sdl_window_t *)lv_display_get_driver_data(disp);
    SDL_Window * window = dsc->window;
    SDL_SetWindowTitle(window, title);
}
